package main

import (
	"fmt"
)

func main() {

	condition := 'y'
	switch condition {
	case 'y', 'Y':
		fmt.Println("yes")
		fallthrough
	case 'n', 'N':
		fmt.Println("No")
		fallthrough
	default:
		fmt.Println("unknow")
	}

	score:=30

	if score<60{
		fmt.Println("不及格")
	}else if score>=60&&score<=70{
        fmt.Println("及格")
	}else if score>70&&score<=80{
		fmt.Println("良好")
	}else{
		fmt.Println("优秀")
	}

	//改写成swich case
	score=90

	switch{
	case score<60:
		fmt.Println("不及格")
	case score>=60&&score<=70:
		fmt.Println("及格")
	case score>70&&score<80:
		fmt.Println("良好")
	default:
		fmt.Println("优秀")
	}

}
